import styled from 'styled-components'

export const PictureWrapper = styled.div`
  width: 100%;
  display: flex;
  justify-content: center;
  margin-top: 20px;
  .content{
    display: flex;
    width: 1320px;
    height: 400px;
    .cover{
      opacity: 1;
    }
    .item:hover{
      .cover{
        opacity: 0;
      }
    }
    .item{
      height: 100%;
      position: relative;
      cursor: pointer;
      img{
        width: 100%;
        height: 100%;
        transition: transform 0.3s ease-in;
      }
      .cover{
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        background-color: rgba(0,0,0,.3);
        transition: opacity 200ms ease;
      }
      &:hover{
        img{
          transform: scale(1.02);
        }
      }
    }
    .left,.right{
      width: 50%;
      height: 100%;
    }
    .left{
      margin-right: 10px;
    }
    .right{
      display: flex;
      flex-wrap: wrap;
      box-sizing: border-box;
      .item{
        width: 49%;
        height: 49%;
        &:nth-child(odd){
          margin-right: 10px;
        }
        &:nth-child(1){
          margin-bottom: 10px;
        }
    }
  }
}
`